package cn.com.xf.utils;

import java.io.UnsupportedEncodingException;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.DigestUtils;

public class ATest {
	public static String getMd5Sign(String content) {

		final String C_charset = "GBK";
		try {
			return new String(Base64.encodeBase64(DigestUtils.md5((content).getBytes(C_charset))), C_charset);
		} catch (UnsupportedEncodingException e) {

		}
		return null;
	}

	public static void main(String[] args) {
		final String notice_key = "{40E809C5-74AF-4ABD-914B-02F99032FC1C}";
		System.out.print(ATest.getMd5Sign("7690005543228263201705231738382282630{40E809C5-74AF-4ABD-914B-02F99032FC1C}"));

	}

}
